home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15539 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: dogmat@aol.com (Dogmat)
  3. Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  4. Subject: Re: Will Java kill C++?
  5. Date: 5 Apr 1996 19:23:55 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4k4dir$ooe@newsbf02.news.aol.com>
  9. References: <4k408h$aov@no-names.nerdc.ufl.edu>
  10. Reply-To: dogmat@aol.com (Dogmat)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13. >> Functions as first class objects
  14.  
  15. > Functions as first class objects?
  16. >Object oriented supesedes functional and procedural  styles.  Mixing the
  17. >two just leads to confusion and dilutes the purity of 
  18. >an object oriented language.
  19.  
  20. Depends on what they mean by "style". What is functional style? Or
  21. procedural style for that matter? (Anything who thinks its obvious, feel
  22. free to try. For a joke, how about it posting it here?)
  23.  
  24. To make a stupid point (but one that caused an old-time programmer
  25. collegue's aha), OOP is just procedural code organized a little
  26. differently. At the lowest level, its nothing but procedural code.
  27. Procedural code makes the world go 'round.
  28.  
  29. The point of the earlier comment about Functions as first-class objects.
  30. is that Functions are as much objects as anything else. It is utterly
  31. true. If you don't think so, then you're a programmer who's never done any
  32. mathematical OOP. If that is retro, then tough, because a lot of the baby
  33. got thrown out with the bathwater when OOP hype arrived. The old ways of
  34. programming can still teach us a great deal, perhaps especially OOP
  35. experts. The best answers lie out beyond the first level of OOP theory
  36. (objects have properties and behavior) into total gonzo OOP (everything is
  37. an object, and really mean it)
  38.  
  39. So to turn it around, OOP has a great deal of use being applied back to
  40. procedural or functional or constraint-based styles. What is an "agent"
  41. but a procedural code with memory? Or is this all just a semantic
  42. confusion of terms (a redundant phrase if I ever said one)?
  43.